import React from 'react'
import  ReactDOM  from 'react-dom'

import './Backdrop.css'

const dropbackRoot = document.getElementById('dropback')

const Backdrop = (props) => {
  return ReactDOM.createPortal(
    <div className='backdrop'>{props.children}</div>,
    dropbackRoot
  )
}

export default Backdrop